//
//  ChoiceModel.m
//  NewNest
//
//  Created by 王阳阳 on 16/3/9.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ChoiceModel.h"
#import "NewNestHeader.h"

@implementation ChoiceModel

-(instancetype)init
{
    self = [super init];
    if (self) {
        NSLog(@"SK == %s", __FUNCTION__);
    }
    return self;
}

// 解档

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_name forKey:@"name"];
    [aCoder encodeObject:_price forKey:@"price"];
    [aCoder encodeObject:_style forKey:@"style"];
    [aCoder encodeObject:_priceInclude forKey:@"priceInclude"];
    [aCoder encodeObject:_houseType forKey:@"houseType"];
    [aCoder encodeObject:_space forKey:@"space"];
    [aCoder encodeObject:_imageUrl forKey:@"imageUrl"];
    [aCoder encodeObject:_indexType forKey:@"indexType"];
}

// 归档
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.price = [aDecoder decodeObjectForKey:@"price"];
        self.style = [aDecoder decodeObjectForKey:@"style"];
        self.priceInclude = [aDecoder decodeObjectForKey:@"priceInclude"];
        self.houseType = [aDecoder decodeObjectForKey:@"houseType"];
        self.space = [aDecoder decodeObjectForKey:@"space"];
        self.imageUrl = [aDecoder decodeObjectForKey:@"imageUrl"];
        self.indexType = [aDecoder decodeObjectForKey:@"indexType"];
    }
    return self;
}


@end
